<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="admin.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="/Dmyna/head.jsp" %>
<%@ include file="/Dmyna/myMenu.jsp"%>
<p>

<%
	//답글을 클릭하면 검색한 결과를 출력하기 위해 다음 작업을 수행
	String mb_no = (String)session.getAttribute("SESSION_MB_NO");
	MemberWritingManager manager = MemberWritingManager.getInstance();
	MemberWriting writing = manager.select(Integer.parseInt(mb_no));
%>
<c:set var="writing" value="<%=writing%>" />

<!-- 상단제목 -->
<table width="900" align=center cellpadding=0 cellspacing=0>
	<tr>
		<td>
			<div
				style="border:1px solid #ddd; height:34px; background:url(${WEB_ROOT }/img/bbs/title_bg.gif) repeat-x;">
				<div style="font-weight: bold; font-size: 14px; margin: 7px 0 0 10px;" align="center">
					::&nbsp;&nbsp;회원 정보 관리&nbsp;&nbsp;::</div>
			</div>
		</td>
	</tr>
</table>
<p>
<form action="/myMemberUpdate.do" method="post" onsubmit="return validate(this)">
<input type="hidden" name="mb_no" value="${writing.mb_no }" />
<table width="900" align="center" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="200"></td><td width="80" align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;이름</td><td width="150" align="left"><input type="text" name="mb_name" value="${writing.mb_name }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;비밀번호</td><td align="left"><input type="password" name="mb_pw" value="${writing.mb_pw }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;비밀번호 확인</td><td align="left"><input type="password" name="mb_pwOk" value="${writing.mb_pw }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;비밀번호 질문</td>
		<td align="left">
			<select name="mb_pw_que">
				<option value="자신의 인생 좌우명은?" ${ writing.mb_pw_que == "자신의 인생 좌우명은?" ?  "selected": "" } >자신의 인생 좌우명은?</option>
				<option value="자신의 보물 제1호는?" ${ writing.mb_pw_que == "자신의 보물 제1호는?" ?  "selected": "" }>자신의 보물 제1호는?</option>
				<option value="기억에 남는 추억의 장소는?" ${ writing.mb_pw_que == "기억에 남는 추억의 장소는?" ?  "selected": "" }>기억에 남는 추억의 장소는?</option>
				<option value="가장 기억에 남는 선생님 성함은?" ${ writing.mb_pw_que == "가장 기억에 남는 선생님 성함은?" ?  "selected": "" }>가장 기억에 남는 선생님 성함은?</option>
				<option value="추억하고 싶은 날짜가 있다면?" ${ writing.mb_pw_que == "추억하고 싶은 날짜가 있다면?" ?  "selected": "" }>추억하고 싶은 날짜가 있다면?</option>
			</select>
		</td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;비밀번호 답변</td><td align="left"><input type="text" size="40" name="mb_pw_ans" value="${writing.mb_pw_ans }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;전화번호</td><td align="left"><input type="text" name="mb_tel" value="${writing.mb_tel }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;핸드폰 번호</td><td align="left"><input type="text" name="mb_phone" value="${writing.mb_phone }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;이메일</td><td align="left"><input type="text" name="mb_email" value="${writing.mb_email }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;메일정보수신</td><td align="left"><input type = "checkbox" name = "mb_mailing" ${ writing.mb_mailing == "y" ?  "checked": "" } value="y" />받습니다.</td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;우편번호</td><td align="left"><input type="text" name="mb_zip" value="${writing.mb_zip }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;기본 주소</td><td align="left"><input type="text" size="60" name="mb_addr1" value="${writing.mb_addr1 }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td align="left" bgcolor=#e7e7e7>&nbsp;&nbsp;나머지 주소</td><td align="left"><input type="text" size="60" name="mb_addr2" value="${writing.mb_addr2 }"/></td>
	</tr>
	<tr>
		<td colspan=2 height=1></td>
	</tr>
	<tr>
		<td width="100"></td><td>&nbsp;</td><td></td>
	</tr>
	<tr>
		<td colspan="3" align="center">
		<input type="image" id="btn_submit" src="${WEB_ROOT }/img/bbs/btn_modify.gif" border=0 accesskey='s' />&nbsp;&nbsp;&nbsp;
		<a href="${WEB_ROOT }/myshop/order/orderList.jsp">
		<img id="btn_list"src="${WEB_ROOT }/img/bbs/btn_list.gif" border=0>
		</a></td>
	</tr>
</table>
<p>
</form>

<%@ include file="/Dmyna/tail.jsp" %>